Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(examples): front-end packages missing browserify polyfills #1224 #1225

Merged
merged 2 commits into from
Aug 19, 2021

Conversation

petermetz
Copy link
Contributor

The webpack build done by the Angular CLI (ng) was broken due to a few
different issues combined together:

  1. After upgrading to Angular v12 IE 11 is no longer supported which
    necessitated the explicit configuration in the browserlist rc config
    file accordingly so that the compilation process does not try to support
    a browser for which the build is broken to begin with.
  2. polyfills had to be added via customizing the webpack configuration
    used by the Angular CLI internally which is now being done by using a
    custom builder as specified in the angular.json file. This is the new
    method of dealing with these kind of issues after the ng eject command
    was deprecated a while back. The webpack.config.overrides.js files
    that are beind added in this commit contain only the overrides (as the
    name suggests) not the entire webpack configuration that the Angular
    CLI uses internally to build the front end packages.

Fixes #1224

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

…edger-cacti#1224

The webpack build done by the Angular CLI (ng) was broken due to a few
different issues combined together:
1. After upgrading to Angular v12 IE 11 is no longer supported which
necessitated the explicit configuration in the browserlist rc config
file accordingly so that the compilation process does not try to support
a browser for which the build is broken to begin with.
2. polyfills had to be added via customizing the webpack configuration
used by the Angular CLI internally which is now being done by using a
custom builder as specified in the angular.json file. This is the new
method of dealing with these kind of issues after the ng eject command
was deprecated a while back. The webpack.config.overrides.js files
that are beind added in this commit contain only the overrides (as the
name suggests) not the entire webpack configuration that the Angular
CLI uses internally to build the front end packages.

Fixes hyperledger-cacti#1224

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz petermetz added bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience labels Aug 16, 2021
@petermetz petermetz added this to the v0.8.0 milestone Aug 16, 2021
@petermetz petermetz requested a review from takeutak August 16, 2021 02:39
@petermetz petermetz self-assigned this Aug 16, 2021
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2021

Codecov Report

Merging #1225 (ce68f80) into main (dcf4c46) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1225   +/-   ##
=======================================
  Coverage   71.95%   71.95%           
=======================================
  Files         270      270           
  Lines        9438     9438           
  Branches     1112     1112           
=======================================
  Hits         6791     6791           
  Misses       2075     2075           
  Partials      572      572           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dcf4c46...ce68f80. Read the comment docs.

@petermetz petermetz modified the milestones: v0.8.0, v0.9.0 Aug 17, 2021
Copy link
Contributor

@jonathan-m-hamilton jonathan-m-hamilton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@petermetz petermetz merged commit 4cc6f2c into hyperledger-cacti:main Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(examples): front-end packages missing browserify polyfills
4 participants